package cn.bandeqing.orderEvaluate.entity;

import cn.bandeqing.frame.mybatis.config.InsertOrUpdateListener;
import cn.bandeqing.frame.mybatis.entity.BaseEntity;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.sql.Timestamp;

/**
 * 订单评价表 实体类。
 *
 * @author fugui
 * @since 2024-03-05
 */
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "bdq_order_evaluate", onInsert = InsertOrUpdateListener.class, onUpdate = InsertOrUpdateListener.class)
public class OrderEvaluate extends BaseEntity {

    @Id(keyType = KeyType.Auto)
    private Long evaluateId;

    private Long customerId;

    private String headImg;

    private String nickName;

    private String evaluateContent;

    private Integer evaluateLevel;

    private Integer orderId;

    private Integer productId;

    private String productName;

    private Integer productSpecificationId;

    private String productSpecification;

    private Timestamp serviceTime;

}
